package com.pakazaka.enemies;

import com.pakazaka.layer.TiledLayer;
import com.pakazaka.player.BasicStranger;
import static com.pakazaka.simplecrawler.Core.getInstance;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;

/**
 *
 * @author Riseremi
 */
public class BasicEnemy extends BasicStranger {

    public BasicEnemy(String pathToSprite) {
        super(pathToSprite);
    }

    @Override
    public void paint(Graphics g) {
        Graphics2D g2d = (Graphics2D) g;
        TiledLayer layer = getInstance().getLayer();

        g.drawImage(sprite, (layer.getBlocksX() + getAbsoluteBlocksX()) * layer.getTileWidth(),
                (layer.getBlocksY() + getAbsoluteBlocksY()) * layer.getTileHeight(), null);
        g2d.setColor(Color.white);
    }

}
